package com.rui.patterns.decorator;

/**
 * @author : [锐神NO.3]
 * @version : [v1.0]
 * @className : FriedRice
 * @createTime : [2022/2/22 16:13]
 * @description : [炒饭(具体构建角色)]
 */

public class FriedRice extends FastFood{

    public FriedRice(){
        super(10, "炒饭");
    }

    @Override
    public float cost() {
        return super.getPrice();
    }
}
